﻿using UnityEngine;
using System.Collections;

public class MENU : MonoBehaviour {
	public static int Width;
	public static int Height;
	public GameObject ScreenPanel;
	public GameObject HelpPanel;
	bool pause=false;
	public void screen1600_900()
	{
		Width = 1600;
		Height = 900;
		Screen.SetResolution (Width, Height, false);
		ScreenPanel.SetActive (false);
	}
	public void screen1280_720()
	{
		Width = 1280;
		Height = 720;
		Screen.SetResolution (Width, Height, false);
		ScreenPanel.SetActive (false);
	}
	void Awake()
	{
		Screen.SetResolution (800, 600, false);
	}
	// Use this for initialization
	void Start () 
	{
		ScreenPanel.SetActive (false);
		HelpPanel.SetActive (false);
	}
	public void OnclickStart()
	{
		Application.LoadLevel("Gold Miner");
	}
	public void OnclickBackHelp()
	{
		HelpPanel.SetActive (false);
	}
	public void Onclickquit()
	{
		Application.Quit ();
	}
	public void OnclickOption()
	{
		ScreenPanel.SetActive (true);
	}
	public void OnclickHelp()
	{
		HelpPanel.SetActive (true);
	}
	// Update is called once per frame
	void Update () {
	
	}
}
